/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Pomoan</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A18253 (C-0-T18130-A18241-A18253-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getPomoan()
 * @model extendedMetaData="name='Pomoan'"
 * @generated
 */
public enum Pomoan implements Enumerator {
	/**
	 * The '<em><b>XPOO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XPOO_VALUE
	 * @generated
	 * @ordered
	 */
	XPOO(0, "xPOO", "x-POO"),

	/**
	 * The '<em><b>XKJU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XKJU_VALUE
	 * @generated
	 * @ordered
	 */
	XKJU(1, "xKJU", "x-KJU"),

	/**
	 * The '<em><b>XPEF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XPEF_VALUE
	 * @generated
	 * @ordered
	 */
	XPEF(2, "xPEF", "x-PEF"),

	/**
	 * The '<em><b>XPEO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XPEO_VALUE
	 * @generated
	 * @ordered
	 */
	XPEO(3, "xPEO", "x-PEO"),

	/**
	 * The '<em><b>XPEQ</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XPEQ_VALUE
	 * @generated
	 * @ordered
	 */
	XPEQ(4, "xPEQ", "x-PEQ");

	/**
	 * The '<em><b>XPOO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XPOO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XPOO
	 * @model name="xPOO" literal="x-POO"
	 * @generated
	 * @ordered
	 */
	public static final int XPOO_VALUE = 0;

	/**
	 * The '<em><b>XKJU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XKJU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XKJU
	 * @model name="xKJU" literal="x-KJU"
	 * @generated
	 * @ordered
	 */
	public static final int XKJU_VALUE = 1;

	/**
	 * The '<em><b>XPEF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XPEF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XPEF
	 * @model name="xPEF" literal="x-PEF"
	 * @generated
	 * @ordered
	 */
	public static final int XPEF_VALUE = 2;

	/**
	 * The '<em><b>XPEO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XPEO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XPEO
	 * @model name="xPEO" literal="x-PEO"
	 * @generated
	 * @ordered
	 */
	public static final int XPEO_VALUE = 3;

	/**
	 * The '<em><b>XPEQ</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XPEQ</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XPEQ
	 * @model name="xPEQ" literal="x-PEQ"
	 * @generated
	 * @ordered
	 */
	public static final int XPEQ_VALUE = 4;

	/**
	 * An array of all the '<em><b>Pomoan</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final Pomoan[] VALUES_ARRAY =
		new Pomoan[] {
			XPOO,
			XKJU,
			XPEF,
			XPEO,
			XPEQ,
		};

	/**
	 * A public read-only list of all the '<em><b>Pomoan</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<Pomoan> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Pomoan</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Pomoan get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			Pomoan result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Pomoan</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Pomoan getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			Pomoan result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Pomoan</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Pomoan get(int value) {
		switch (value) {
			case XPOO_VALUE: return XPOO;
			case XKJU_VALUE: return XKJU;
			case XPEF_VALUE: return XPEF;
			case XPEO_VALUE: return XPEO;
			case XPEQ_VALUE: return XPEQ;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private Pomoan(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //Pomoan
